﻿<Window x:Class="PupillaryDistance.DesktopUI.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ft="clr-namespace:PupillaryDistance.DesktopUI"
        Title="MainWindow" Height="700" Width="1000" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
    <Grid>
        <Label Content="Measuring Your Pupillary Distance" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontSize="22"/>
        <Label Name="lblDetectingBody" Content="Detecting You >" HorizontalAlignment="Left" Margin="10,50,0,0" VerticalAlignment="Top" FontSize="18" Foreground="DarkRed"/>
        <Label Name="lblDetectingPupils" Content="Detecting Your Pupils >" HorizontalAlignment="Left" Margin="150,50,0,0" VerticalAlignment="Top" FontSize="18" Foreground="Gray"/>
        <Label Name="lblCalculatingDistance" Content="Calculating Your Pupillary Distance" HorizontalAlignment="Left" Margin="350,50,0,0" VerticalAlignment="Top" FontSize="18" Foreground="Gray"/>
        <Grid>
            <Viewbox Stretch="Uniform" Margin="10, 100, 10, 50" Width="640" Height="480" HorizontalAlignment="Left" VerticalAlignment="Top">
                <Grid Name="MainGrid" Margin="10,0,0,0" ClipToBounds="True">
                    <Grid Width="640" Height="480">
                        <Image Name="ColorImage" Width="640" Height="480" />
                        <Image Name="DepthImage" Width="640" Height="480" Opacity="0.3" />
                        <ft:FaceTrackingViewer x:Name="faceTrackingViewer" />
                    </Grid>
                </Grid>
            </Viewbox>
            <Grid Margin="660, 100, 10, 0">
                <StackPanel Margin="10, 10, 10, 10">
                    <Label FontSize="22px">Enter Your Pupillary Distance</Label>
                    <TextBox FontSize="18px" Name="tbPd" Margin="5, 0, 5, 0"></TextBox>
                    <Label FontSize="22px">Sensor Options</Label>
                    <CheckBox Name="cbDepthTracker" IsChecked="False" Click="cbDepthTracker_Click">
                        <Label FontSize="16px">Show Depth Tracker</Label>
                    </CheckBox>
                    <CheckBox Name="cbEyeTracker" IsChecked="False" Click="cbEyeTracker_Click">
                        <Label FontSize="16px">Show Eye Tracker</Label>
                    </CheckBox>
                    <Label FontSize="22px">Tracking Options</Label>
                    <CheckBox Name="cbMethod1" IsChecked="False" Click="cbMethod1_Click">
                        <StackPanel>
                            <Label FontSize="16px">Method 1</Label>
                            <TextBlock TextWrapping="Wrap" Margin="5, 0, 0, 0">Tracking pupils using outter left/right top only</TextBlock>
                        </StackPanel>
                    </CheckBox>
                    <CheckBox Name="cbMethod2" IsChecked="False" Click="cbMethod2_Click">
                        <StackPanel>
                            <Label FontSize="16px">Method 2</Label>
                            <TextBlock TextWrapping="Wrap" Margin="5, 0, 0, 0">
                                Tracking pupils using the average of 4 points around the pupil
                            </TextBlock>
                        </StackPanel>
                    </CheckBox>
                    <CheckBox Name="cbMethod3" IsChecked="False" Click="cbMethod3_Click">
                        <StackPanel>
                            <Label FontSize="16px">Method 3</Label>
                            <TextBlock TextWrapping="Wrap" Margin="5, 0, 0, 0">
                                Tracking pupils using the center of the top and bottom of the eyes
                            </TextBlock>
                        </StackPanel>
                    </CheckBox>
                    <CheckBox Name="cbMethod4" IsChecked="False" Click="cbMethod4_Click">
                        <StackPanel>
                            <Label FontSize="16px">Method 4</Label>
                            <TextBlock TextWrapping="Wrap" Margin="5, 0, 0, 0">
                               Tracking pupils using the center point of the left most and right most point of eyes
                            </TextBlock>
                        </StackPanel>
                    </CheckBox>
                    <CheckBox Name="cbMethod5" IsChecked="False" Click="cbMethod5_Click">
                        <StackPanel>
                            <Label FontSize="16px">Method 5</Label>
                            <TextBlock TextWrapping="Wrap" Margin="5, 0, 0, 0">
                               Tracking pupils using the average of the outter left/right top and bottom
                            </TextBlock>
                        </StackPanel>
                    </CheckBox>
                </StackPanel>
            </Grid>
        </Grid>
    </Grid>
</Window>
